1 using UnityEngine;
2 using
System.Collections;
3
4 public
class QuitOnEscapeOrBack : MonoBehaviour
5 {
6     
private void Update()
7     {
8         
// "back" button of phone equals "Escape". quit app if that's pressed
9         
if (Input.GetKeyDown(KeyCode.Escape))
10         {
11             Application.Quit();
12         }
13     }
14 }


"back" button of phone equals "Escape". quit app if that's pressed




Trò chơi Tic-Tac-Toe, game đánh caro full source code 53.477 lượt xem

Gõ tìm kiếm nhanh...